package service;

import java.util.List;

import dao.UserDao;
import entity.User;

public class UserService {
	UserDao userDao = new UserDao();
	
	public List<User> list(String uAccount,String uPassword){
		List<User> us= userDao.list(uAccount,uPassword);
		return us;
	}
	
	public void add(String uname,String uaccount,String upassword,String usex) {
		User u = new User();
        u.uname = uname;
        u.uaccount = uaccount;
        u.upassword = upassword;
        u.usex = usex;
        userDao.add(u);
	}
}
